import cv2


image = cv2.imread('./card.webp')


#去除噪声
#denoisingImage = cv2.fastNlMeansDenoisingColored(image,None,10,10,7,21)
#边缘检测
#denoisingImage = cv2.Canny(image,100,200)

#调整尺寸
#imageResize = cv2.resize(image,(500,500))
#调整图像分辨率
#imageResizeSampled = cv2.resize(image,(500,500),interpolation=cv2.INTER_AREA)

#转换图像格式
#covertedImage = cv2.imwrite("output.png",image)

#显示图像
cv2.imshow('',image)
cv2.waitKey(0)
cv2.destroyAllWindows()